let {list}=require('./src/mock/index');


module.exports={
    devServer:{
        before(app){
            app.get('/api/getList',(req,res)=>{
                res.send({
                    list
                })
            })
            app.get('/api/detail',(req,res)=>{
               let {i,index}=req.query
              let detailList= list[i].son[index]
                res.send({
                    detailList
                })
            })
        }
    }
}